package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 处方管理对象 med_medical_order
 *
 * @author yangxp
 * @date 2020-08-06
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("med_medical_order")
public class MedicalOrder implements Serializable {

	private static final long serialVersionUID = 1L;


	/**
	 * $column.columnComment
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * $column.columnComment
	 */
	@TableId(value = "mo_id", type = IdType.AUTO)
	private String moId;

	/**
	 * 患者id
	 */
	@TableId(value = "pat_id", type = IdType.AUTO)
	private String patId;

	/**
	 * 药方名字
	 */
	@Excel(name = "药方名字")

	private String moName;

	/**
	 * 医生名字
	 */
	@Excel(name = "医生名字")
	private String creator;

	@Excel(name = "数量")
	private Integer moAmount;

	@Excel(name = "价格")
	private BigDecimal moPrice;

	@Excel(name = "备注")
	private String moDesc;

	/**
	 * $column.columnComment
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date gmtCreate;

	/**
	 * $column.columnComment
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date gmtModified;

	/**
	 * $column.columnComment
	 */

	private Integer isDeleted;

	@TableField(exist = false)
	private List<MedMo> medicineList;

	@TableField(exist = false)
	private String patName;

}
